package com.example.algorithm.no0213;

import java.util.Arrays;

import com.example.algorithm.no0213.impl.DpSolutionImpl;
import com.example.algorithm.no0213.impl.RollSolutionImpl;

/**
 * @Description 解答测试
 * @ClassName SolutionTest
 * @Author Administrator
 * @Date 2020/5/16 12:54
 * @Version 1.0.0
 */
public class SolutionTest {

//    // 3
//    static int[] nums = new int[]{2,3,2};

//    // 4
//    static int[] nums = new int[]{1,2,3,1};

    // 3
    static int[] nums = new int[]{1, 2, 3};

    public static void main(String[] a1rgs) {

        System.out.println("输入数组为: " + Arrays.toString(nums));

//        Solution solution = new DpSolutionImpl();
        Solution solution = new RollSolutionImpl();

        System.out.println("输出: " + solution.rob(nums));

    }
}
